package n13.first;
public class Person {
	private String name;
	private String tel; 
	public Person(String name,String tel) {
		this.name=name;
		this.tel=tel;
	}
	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof Person))return false;
		Person f=(Person) obj;
		return this.name.equals(f.name) && this.tel.equals(f.tel);
	}
	@Override
	public int hashCode() {
		return name.hashCode();
	}
	@Override
	public String toString() {
		return name+"•"+tel;
	}
}
